package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworks
 * Date: 2/5/13
 * Time: 5:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class Book {
    private String title;
    private boolean reserved;

    public Book(String title)
    {
        this.title = title;
        this.reserved = false;
    }

    public String toString()
    {
        return title;
    }

    public void reserve()
    {
        reserved = true;
    }

    public boolean isReserved()
    {
        return reserved;
    }
}
